package com.lujianbuping.system.opportunityprojectmanagementsystem.dao;


import com.lujianbuping.system.opportunityprojectmanagementsystem.entity.CustomerEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CustomerMapper {
    int deleteByPrimaryKey(String id);

    int insert(CustomerEntity record);

    int insertSelective(CustomerEntity record);

    CustomerEntity selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CustomerEntity record);

    int updateByPrimaryKey(CustomerEntity record);
    
    List<CustomerEntity> selectAll(@Param("orderBy") String orderBy);
    
    List<CustomerEntity> selectByKeyWithPagination(@Param("key") String key, @Param("pageNo") int pageNo, @Param("pageSize") int pageSize);
    
}